
<template>
  <div>
    <TipsComponent ref="tipsRef" @openDrawer="openComment" />
    <CommentComponent ref="commentRef" @close-drawer="refreshTip" />
  </div>
</template>

<script setup>
import { ref } from 'vue';
import TipsComponent from "@/views/Detail/components/TipsComponent.vue";
import CommentComponent from "@/views/Detail/components/CommentComponent.vue";

const commentRef = ref(null);
const tipsRef = ref(null);
const openComment = () => {
  commentRef.value.openDrawer()
};
const refreshTip = () => {
  tipsRef.value.getPostInfoByPostId()
}
defineOptions({
  name: 'DetailPage',
})

</script>

<style>

</style>

